<div id="data_page" class="in_page">
	<div class="panel panel-default">

<!--添加菜单-->
<div class="btn-group" role="group" aria-label="...">
				  <a href="{:U('Msg/add_question')}"><button type="button" class="btn btn-primary">发送消息</button></a>				  
</div>
</div>
</div>
      <table class="table table-bordered" style="text-align:center">
        <thead>
          <tr>
           <!--  <th><span class="glyphicon glyphicon-leaf"></span>ID</th> -->
            <th><span class="glyphicon glyphicon-leaf"></span>类型</th>
            <th><span class="glyphicon glyphicon-leaf"></span>范围</th>
            <th><span class="glyphicon glyphicon-leaf"></span>发送人</th>
<!--             <th><span class="glyphicon glyphicon-leaf"></span>发送对象</th>
 -->            <th><span class="glyphicon glyphicon-leaf"></span>接收小区</th>
            <th><span class="glyphicon glyphicon-leaf"></span>接收人</th>
            <th><span class="glyphicon glyphicon-leaf"></span>发送内容</th>
            <th><span class="glyphicon glyphicon-leaf"></span>发送时间</th>
            <th><span class="glyphicon glyphicon-leaf"></span>操作</th>
          </tr>     
        </thead>
        <tbody>
         <volist name="list['list']" id="data">
          <tr>
            <td>
                <if condition="$data['type'] eq '1'">公告</if>
                <if condition="$data['type'] eq '0'">通知类</if>
                <if condition="$data['type'] eq '3'">客服评价</if>
            </td>
            <td>
                <if condition="$data['sendtype'] eq '1'">单个发送</if>
                <if condition="$data['sendtype'] eq '2'">全部用户</if>
                <if condition="$data['sendtype'] eq '0'">群发</if>
            </td>
            <td>{$data['send_name']}</td>
         <!--    <td>
                <if condition="$data['obj'] eq '1'">全部</if>
                <if condition="$data['obj'] eq '2'">业主</if>
                <if condition="$data['obj'] eq '3'">租客</if>
            </td> -->
            <td> 
              <if condition="$data['sendtype'] eq '1'">单个用户</if>
              <if condition="$data['sendtype'] eq '2'">全部小区</if>
              <if condition="$data['sendtype'] neq '2'">
                 <a href="{:U('Msg/apt_list')}?id={$data.id}"> <if condition="$data['sendtype'] neq '1'"><button type="button" class="btn btn-primary btn-xs">查看</button></a>
              </if></if>
            </td>
            <td>
                <if condition="$data['for_people'] eq '0'">全部客户</if>
                <if condition="$data['for_people'] eq ''">小区所有客户</if>
                <if condition="$data['sendtype'] eq '1'">
                    <a href="{:U('Msg/people_list')}?id={$data.id}"><button type="button" class="btn btn-primary btn-xs">查看</button></a>
                </if>
            </td>
            <td>{$data['contid']}</td>
            <td><?php echo date('Y-m-d H:i:s',$data['sendtime']);?></td>
            <td>
               <div class="btn-group" role="group" aria-label="...">
                  <a href="{:U('Msg/del_news',array('id'=>$data['id']))}"  onclick="return confirm('是否确认删除？')"><button type="button" class="btn btn-danger btn-xs">删除</button></a>
               </div>
           </td>
          </tr>
        </volist>
        </tbody>
      </table> 
</div>
<div class="pagelist">{$list['page']} </div>
<style>
 .pagelist{ text-align:right; background:#f1f1f1; padding:7px 0;}
  .pagelist a{ margin:0 5px; border:#6185a2 solid 1px; display:inline-block; padding:2px 6px 1px; line-height:16px; background:#fff; color:#6185a2;}
 .pagelist span{ margin:0 5px; border:#6185a2 solid 1px; display:inline-block; padding:2px 6px 1px; line-height:16px; color:#6185a2; color:#fff; background:#6185a2;}
 .trr td{height: 50px; line-height: 50px}

</style>